Zepto(function ($) {

    // // 注册'infinite'事件处理函数
    // $(document).on('infinite', '.infinite-scroll-bottom',function() {
    //     alert("小崔帅比")
    //     // // 模拟1s的加载过程
    //     // setTimeout(function() {
    //     //     // // 加载完毕，则注销无限加载事件，以防不必要的加载
    //     //     $.detachInfiniteScroll($('.infinite-scroll'));
    //     //     // 删除加载提示符
    //     //     $('.infinite-scroll-preloader').remove();
    //     //     var html = '<div class="item-evaluate"> <div class="item-bg-image"><div class="row"><div class="col-80"><div class="course-title-evaluate"><span>小崔帅比</span></div><div class="course-detail-item"><div class="courseTime-evaluate"><span>授课时间：</span></div><div class="coureTimeDetail-evaluate"><span>2017-11-10 9：00-12：00</span></div></div></div></div></div></div><div class="item-evaluate"> <div class="item-bg-image"><div class="row"><div class="col-80"><div class="course-title-evaluate"><span>小崔帅比</span></div><div class="course-detail-item"><div class="courseTime-evaluate"><span>授课时间：</span></div><div class="coureTimeDetail-evaluate"><span>2017-11-10 9：00-12：00</span></div></div></div></div></div></div><div class="item-evaluate"> <div class="item-bg-image"><div class="row"><div class="col-80"><div class="course-title-evaluate"><span>小崔帅比</span></div><div class="course-detail-item"><div class="courseTime-evaluate"><span>授课时间：</span></div><div class="coureTimeDetail-evaluate"><span>2017-11-10 9：00-12：00</span></div></div></div></div></div></div><div class="item-evaluate"> <div class="item-bg-image"><div class="row"><div class="col-80"><div class="course-title-evaluate"><span>小崔帅比</span></div><div class="course-detail-item"><div class="courseTime-evaluate"><span>授课时间：</span></div><div class="coureTimeDetail-evaluate"><span>2017-11-10 9：00-12：00</span></div></div></div></div></div></div><div class="item-evaluate"> <div class="item-bg-image"><div class="row"><div class="col-80"><div class="course-title-evaluate"><span>小崔帅比</span></div><div class="course-detail-item"><div class="courseTime-evaluate"><span>授课时间：</span></div><div class="coureTimeDetail-evaluate"><span>2017-11-10 9：00-12：00</span></div></div></div></div></div></div><div class="item-evaluate"> <div class="item-bg-image"><div class="row"><div class="col-80"><div class="course-title-evaluate"><span>小崔帅比</span></div><div class="course-detail-item"><div class="courseTime-evaluate"><span>授课时间：</span></div><div class="coureTimeDetail-evaluate"><span>2017-11-10 9：00-12：00</span></div></div></div></div></div></div><div class="item-evaluate"> <div class="item-bg-image"><div class="row"><div class="col-80"><div class="course-title-evaluate"><span>小崔帅比</span></div><div class="course-detail-item"><div class="courseTime-evaluate"><span>授课时间：</span></div><div class="coureTimeDetail-evaluate"><span>2017-11-10 9：00-12：00</span></div></div></div></div></div></div><div class="item-evaluate"> <div class="item-bg-image"><div class="row"><div class="col-80"><div class="course-title-evaluate"><span>小崔帅比</span></div><div class="course-detail-item"><div class="courseTime-evaluate"><span>授课时间：</span></div><div class="coureTimeDetail-evaluate"><span>2017-11-10 9：00-12：00</span></div></div></div></div></div></div><div class="item-evaluate"> <div class="item-bg-image"><div class="row"><div class="col-80"><div class="course-title-evaluate"><span>小崔帅比</span></div><div class="course-detail-item"><div class="courseTime-evaluate"><span>授课时间：</span></div><div class="coureTimeDetail-evaluate"><span>2017-11-10 9：00-12：00</span></div></div></div></div></div></div>'
    //     //     $('.courseList-evaluate').append(html);
    //     //     // //容器发生改变,如果是js滚动，需要刷新滚动
    //     //     $.refreshScroller();
    //     // }, 1000);
    // });

    installEchart('paper1');

    function installEchart(str) {
        //初始化echart
        var myChart = echarts.init(document.getElementById(str));

        var option = {
            tooltip: {
                trigger: 'item',
                formatter: "{b}: {c}"
            },
            series: [
                {
                    type: 'pie',
                    hoverAnimation: false,
                    radius: ['70%', '80%'],
                    color: ['#eaeaea', '#59f36b'],
                    label: {
                        normal: {
                            show: false,
                            position: 'center'
                        }
                    },
                    data: [
                        {
                            value: 20,
                            name: '正在进行'
                        },
                        {
                            value: 80,
                            name: '未开课'
                        }
                    ]
                }
            ]
        };
        // 使用刚指定的配置项和数据显示图表。
        myChart.setOption(option);
    }

    $.init()
});